package com.example.eventreg.action;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.eventreg.Student.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

//spring.application.name=demo
@Mapper
public interface ActionMapper extends BaseMapper<Action> {
    @Select("SELECT state, COUNT(*) AS total FROM action GROUP BY state")
    public List<Map<String, Object>> getActionCountByState();
}